function ajax(){
  var request = new XMLHttpRequest()
  request.onreadystatechange=(res)=>{
    if(request.readyState===4){
      if(request.status>=200 && request.status<300){
        // console.log(request.response);
      }else if(request.status>=400){
        console.log("请求失败");
      }
    }
  }
  request.open('GET','http://192.168.3.90:9882/myehr/kq/kqTree.action?userId=25049&swaggerUserCode=sysadmin',false)
  request.send()
  return request
}
let data=ajax()

console.log('😇',JSON.parse(data.response));
